/**
 * Created by Jack Xue on 20101202
 */
package org.code.jack.jweberp.domain;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.ManyToOne;

import org.code.jack.jweberp.core.POLoad;
import org.hibernate.annotations.Cache;
import org.hibernate.annotations.CacheConcurrencyStrategy;

@Entity
@Cache(usage = CacheConcurrencyStrategy.NONSTRICT_READ_WRITE)
public class SystemDictionaryDetail implements Serializable {
	private static final long serialVersionUID = 375682754738724960L;

	@Id
	@GeneratedValue(strategy = GenerationType.TABLE)
	private Long id;

	private String name;// 字典详情名称
	private String value;// 字典详情名称对应的值
	private String intro;// 简介

	@POLoad(name = "parentId")
	@ManyToOne(fetch = FetchType.LAZY)
	private SystemDictionary parent;

	private Integer sequence = 1;// 排序
	private Integer status = 1;// 状态　1:正常　0:锁定　-1:回收站　
	private Date inputDate = new Date();// 添加日期

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getValue() {
		return value;
	}

	public Integer getSequence() {
		return sequence;
	}

	public void setSequence(Integer sequence) {
		this.sequence = sequence;
	}

	public void setValue(String value) {
		this.value = value;
	}

	public String getIntro() {
		return intro;
	}

	public void setIntro(String intro) {
		this.intro = intro;
	}

	public SystemDictionary getParent() {
		return parent;
	}

	public void setParent(SystemDictionary parent) {
		this.parent = parent;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public Date getInputDate() {
		return inputDate;
	}

	public void setInputDate(Date inputDate) {
		this.inputDate = inputDate;
	}

	public static long getSerialversionuid() {
		return serialVersionUID;
	}

}
